//
//  ZYNewEditionOfIntensiveCourseTwoCell.m
//  优学荟管理系统
//
//  Created by edz on 2018/1/9.
//  Copyright © 2018年 星道三好. All rights reserved.
//

#import "ZYNewEditionOfIntensiveCourseTwoCell.h"

@implementation ZYNewEditionOfIntensiveCourseTwoCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        
        [self setUpSuperView];
        
    }
    
    
    
    return self;
    
}



- (void)setUpSuperView{
    
    
    self.teacherNameLabel = [UILabel new];
    self.teacherNameLabel.font = [UIFont systemFontOfSize:14];
    self.teacherNameLabel.textColor = ColorRGB(153, 153, 153);
    self.teacherNameLabel.text = @"张老师";
    [self.contentView addSubview:self.teacherNameLabel];
    
    self.studentButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
    [self.studentButton setBackgroundImage:[UIImage imageNamed:@"btn_answer_default"] forState:(UIControlStateNormal)];
    [self.studentButton setTitle:@"学生分班" forState:(UIControlStateNormal)];
    [self.studentButton setTitleColor:ColorRGB(246, 83, 83) forState:(UIControlStateNormal)];
    self.studentButton.titleLabel.font = [UIFont systemFontOfSize:12];
    [self.contentView addSubview:self.studentButton];
    
    
    
    [self.teacherNameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(40);
        make.top.offset(8);
        make.right.equalTo(self).offset(-100);
        make.height.offset(44);
    }];
    
    [self.studentButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.offset(-8);
        make.centerY.equalTo(self.teacherNameLabel);
    }];
    
    [self.contentView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.offset(0);
        make.bottom.mas_equalTo(self.teacherNameLabel).offset(5);
    }];
    
}





@end
